import 'package:enterprise_v6_app/app/components/video/video_play_widget.dart';
import 'package:enterprise_v6_app/app/core/core.dart';
import 'package:enterprise_v6_app/app/modules/application/major_hazard/monitor/camera/camera_controller.dart';

class HazardMonitorCameraPage extends StatelessWidget {
  HazardMonitorCameraPage({super.key});

  final controller = Get.put(HazardMonitorCameraController());

  final url = Get.arguments['url'] as String?;

  @override
  Widget build(BuildContext context) {
    return GetBuilder(
      init: controller,
      builder: (_) {
        return Center(
          child: VideoPlayWidget(
            url: url,
            autoPlay: true,
            isLive: true,
          ),
        );
      },
    );
  }
}
